import http from "../utils/http";
export default {
    create(description, memberUsername, orderId, orderSn, productAttr, productBrand, productCount, productId, productName, productPic, productPrice, productRealPrice, proofPics, reason, returnName, returnPhone) {
        return http.post("/returnApply/create", { description, memberUsername, orderId, orderSn, productAttr, productBrand, productCount, productId, productName, productPic, productPrice, productRealPrice, proofPics, reason, returnName, returnPhone })
    },
    getById(id) {
        return http.get("/returnApply/getById/"+id)
    },
    list(pageNum, pageSize,status) {
        return http.get("/returnApply/list", { pageNum, pageSize,status})
    },
	reasonList() {
	    return http.get("/returnApply/returnReason/list")
	}
}